package com.obixlabs.security.credentialsstore.server.dao;

import com.obixlabs.security.credentialsstore.model.ObixGroup;
import com.obixlabs.security.credentialsstore.model.ObixPermission;
import com.obixlabs.security.credentialsstore.model.ObixPermissions;

public interface PermissionDAO 
{	
	ObixPermissions	findAll();	
	ObixPermissions findByGroup(ObixGroup group);
	void save(ObixPermission permission);
	void delete(ObixPermission permission);
	ObixPermission findByName(String name);
	
	//INTERNAL assignPermission(ObixGroup, ObixPermission)
	//INTERNAL revokePermission(ObixGroup, ObixPermission)
}